package com.zsrd.self.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@TableName("self_order_discounts")
@Data
//订单优惠信息表
public class OrderDiscounts {


     @TableId
     private Long id;


     @TableField("open_id")
     @ApiModelProperty("用户id")
     private String openId;

     @TableField("price")
     @ApiModelProperty("金额")
     private Double price;

     @TableField("preferential_price")
     @ApiModelProperty("优惠后金额")
     private Double preferentialPrice;


     @TableField("time")
     @ApiModelProperty("操作时间")
     private Date time;

     @TableField("code")
     @ApiModelProperty("0创建1进行中2成功")
     private String code;

     @TableField("prepay_id")
     @ApiModelProperty("url地址")
     private String prepayId;


     @TableField("order_no")
     @ApiModelProperty("订单编号")
     private String orderNo;

     @TableField("is_coupons")
     @ApiModelProperty("是否使用10元优惠券")
     private int isCoupons;


     @TableField(exist = false)
     //标题
     private String title;

     @TableField(exist = false)
     //优惠券价格
     private Double coupon;


     @TableField(exist = false)
     private String codes;

     @TableField(exist = false)
     private String unionId;

     // 返回支付状态 1 成功 2 失败
     @TableField(exist = false)
     private String type;


     @TableField(exist = false)
     private String prices;


}
